import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'
const Random = Mock.Random;

// 获取应用数据
mock.onGet('v7/myappmenu').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, {
        name: 'db_appmenu1_appmenu',
        items:  [
            {
	id: '0CB8ED34-9633-4AF7-97A4-DA52FAE6F0C7',
	name: 'menuitem2',
	text: '个人资料',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '个人资料',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'person',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc24',
	resourcetag: '',
},
            {
	id: 'AAE2CC32-EE7A-4EF0-9758-0F7739CDE1DD',
	name: 'menuitem1',
	text: '消息',
	type: 'MENUITEM',
	counterid: 'MYNOREADNOTICECNT',
	tooltip: '消息',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'notifications-outline',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc22',
	resourcetag: '',
},
            {
	id: 'F500D7C1-4C82-43A8-B51E-D329D7EF38F7',
	name: 'menuitem5',
	text: '我的星级',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '我的星级',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: 'assets/images/xjpd.svg',
	textcls: '',
	appfunctag: 'AppFunc31',
	resourcetag: '',
},
            {
	id: 'E358125C-FA7D-4F43-AF4D-9E04DCE937AF',
	name: 'menuitem4',
	text: '设置',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '设置',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'fa fa-gear',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc28',
	resourcetag: '',
},
        ],
    }];
});

